<?php
class DBException extends Exception {

    function errorMessage() {
        $errorMsg = 'Error on line '.$this->getLine().' in '.$this->getFile()
            .': <b>'.$this->getMessage().'</b>';
        return $errorMsg;
    }

    function getGeneralErrorMessage () {
        return "DBException :: General Error Message";
    }

    function getExceptionType () {
        return "DBException";
    }

}
?>
